/**
 * Created by Administrator on 2014/12/3.
 */
var pool = require('./mysql');
var selectSQL = 'select * from zs_user limit 10';

//pool.getConnection(function (err, conn) {
//    if (err) console.log("POOL ==> " + err);
//
//    conn.query(selectSQL,function(err,rows){
//        if (err) console.log(err);
//        console.log("SELECT ==> ");
//        for (var i in rows) {
//            console.log(rows[i]);
//        }
//        conn.release();
//    });
//});
    pool.query(selectSQL,function(err,rows){
        if (err) console.log(err);
        console.log("SELECT ==> ");
        for (var i in rows) {
            console.log(rows[i]);
        }
    });
